home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
cujaug93.zip
/
1108112A
< prev
next >
Wrap
Text File
|
1993-06-09
|
249b
|
16 lines
/* bit1.c: Pack a date into an integer */
#include <stdio.h>
main()
{
unsigned int date, year = 92, mon = 8, day = 2;
date = (year << 9) | (mon << 5) | day;
printf("%04X\n",date);
return 0;
}
/* OUTPUT:
* B902 */